<?php

namespace app\jzshop\command;

use app\jzshop\common\crmeb\CrmebUpload;
use app\jzshop\common\crmeb\Product;
use app\jzshop\common\Jwts;
use think\console\Command;
use think\console\Input;
use think\console\Output;



class jwt extends Command
{

    protected $output;

    protected $input;

    protected function configure()
    {
        // 指令配置
        $this->setName('jwt')->setDescription('test');
    }

    protected function execute(Input $input, Output $output)
    {
        // 指令输出
        $this->input = $input;

        $this->output = $output;

        try {
            $this->go();
        } catch (\Throwable $th) {
            dump($th->getMessage());
            dump($th->getTraceAsString());
        }
    }

    function go()
    {

        $response = CrmebUpload::getInstance()->OnlineUpload([
            'https://images.sursung.com/prod/pt/10004036/20240229/9EECB4320D0644F1A8AA6ED99B002475_s126650_h800_w800.jpg'
        ]);
        dump($response);

    }
}


